import 'permission_service.dart';

class PermissionHelper {
  // 请求并检查存储权限
  static Future<bool> requestAndCheckStoragePermission() async {
    bool isGranted = await PermissionService.checkStoragePermission();
    if (!isGranted) {
      isGranted = await PermissionService.requestStoragePermission();
    }
    return isGranted;
  }
}
